package com.karry.yl.service.mz.impl;

import com.karry.yl.dao.mz.MzDepartmentMapper;
import com.karry.yl.domain.mz.MzDepartment;
import com.karry.yl.service.mz.MzDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MzDepartmentServiceImpl implements MzDepartmentService {

    @Autowired
    private MzDepartmentMapper mzDepartmentMapper;

    @Override
    public List<MzDepartment> selectList() {
        return mzDepartmentMapper.selectList();
    }

    @Override
    public MzDepartment selectByCode(String code) {
        return mzDepartmentMapper.selectByCode(code);
    }
}
